<template>
	<view class="page" :style="themeColor">
		<view class="flex benben-position-layout flex flex-wrap align-center accountCancellationSubmission_flex_0"
			:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx'}">
			<view class='flex flex-wrap align-center justify-between flex-sub accountCancellationSubmission_fd0_0'>
				<view class='flex flex-wrap align-center'>
					<person></person>
				</view>
				<view class='flex flex-wrap align-stretch justify-center flex-sub'>
					<text class='accountCancellationSubmission_fd0_0_c1_c0'>注销账号</text>
				</view>
				<view class='flex flex-wrap align-center accountCancellationSubmission_fd0_0_c2'>
				</view>
			</view>

		</view>
		<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
		<view style="padding: 8rpx 32rpx;">
			<back></back>
		</view>
		<!---注销账号提交成功flex布局开始-->
		<view class="flex flex-direction flex-wrap align-center benben-flex-layout accountCancellationSubmission_flex_1"
			v-if="type=='1'">
			<image class='accountCancellationSubmission_fd1_0' mode="aspectFit" :src='STATIC_URL+"49.png"'></image>
			<text class='accountCancellationSubmission_fd1_1'>注销申请提交成功！</text>
			<text class='accountCancellationSubmission_fd1_2'>我们工作人员将会对您的账号进行审核，审核通过后， 账号将会被注销，请知悉</text>
		</view>

		<!---注销账号提交成功flex布局结束-->
		<!---注销账号提交处理中flex布局开始-->
		<view class="flex flex-direction flex-wrap align-center benben-flex-layout accountCancellationSubmission_flex_2"
			v-if="type=='2'">
			<image class='accountCancellationSubmission_fd2_0' mode="aspectFit" :src='STATIC_URL+"50.png"'></image>
			<text class='accountCancellationSubmission_fd2_1'>处理中</text>
			<view class='flex flex-wrap align-center'>
				<text class='accountCancellationSubmission_fd2_2_c0'>注销理由：</text>
				<text class='accountCancellationSubmission_fd2_2_c0'>{{zhuangtai.reason}}</text>
			</view>
		</view>

		<!---注销账号提交处理中flex布局结束-->
		<benben-popup v-model="popupShow1683367215484" :mask="true" mode='center'>
			<!---退出登录flex布局开始-->
			<view class="flex flex-direction flex-wrap align-center accountCancellationSubmission_flex_3"
				@tap.stop="popupShow1650940432200=true">
				<text class='accountCancellationSubmission_fd3_0'>提示</text>
				<text class='accountCancellationSubmission_fd3_1'>确定退出当前账号？</text>
				<view class='flex flex-wrap align-center accountCancellationSubmission_fd3_2'>
					<button class='accountCancellationSubmission_fd3_2_c0'
						@tap.stop="popupShow1683367215484=false">取消</button>
					<button class='accountCancellationSubmission_fd3_2_c1' @tap.stop="returnToHomeFunc()">确定</button>
				</view>
			</view>

			<!---退出登录flex布局结束-->

		</benben-popup>


	</view>
</template>
<script>
	import back from "@/components/back/index.vue"
	import person from "@/components/person/index.vue"
	export default {
		components: {
			back,
			person
		},


		data() {
			return {
				"popupShow1683367215484": false,
				"type": "1",
				zhuangtai: {}
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {
			let {
				type
			} = options
			if (type !== undefined) this.type = type
			this.getzhuxiao()
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			handle() {
				uni.navigateTo({
					url: '/pages/xtsz/cardAndSafe/cardAndSafe'
				})
			},
			async getzhuxiao() {
				let res = await this.$api.post(global.apiUrls.a64367ec8ebe21, {})
				if (res.data.code != 1) {
					this.$message.info(res.data.msg)
					return
				}
				this.zhuangtai = res.data.data
				console.log(this.zhuangtai)
				if (this.zhuangtai.status == 2) {
					this.$message.info("审核失败，请重新提交注销申请")
					setTimeout(() => {
						uni.navigateTo({
							url: '/pages/xtsz/cardAndSafe/cardAndSafe'
						})
					}, 600)
				}
			}
		},
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #fff;
		background-size: 100% auto !important;
	}

	.accountCancellationSubmission_flex_0 {
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.accountCancellationSubmission_fd0_0_c2 {
		width: 32rpx;
		height: 32rpx;
	}

	.accountCancellationSubmission_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333;
		line-height: 88rpx;
	}

	.accountCancellationSubmission_fd0_0_c0_c0 {
		font-size: 32rpx;
		font-weight: 500;
		color: #333;
		line-height: 88rpx;
	}

	.accountCancellationSubmission_fd0_0 {
		margin: 0rpx 32rpx 0rpx 32rpx;
	}

	.accountCancellationSubmission_flex_1 {
		padding: 88rpx 39rpx 0rpx 39rpx;
	}

	.accountCancellationSubmission_fd1_2 {
		line-height: 40rpx;
		font-size: 28rpx;
		font-weight: 400;
		color: #666666;
		text-align: center;
	}

	.accountCancellationSubmission_fd1_1 {
		line-height: 105rpx;
		font-size: 32rpx;
		font-weight: 700;
		color: var(--benbenFontColor1);
	}

	.accountCancellationSubmission_fd1_0 {
		width: 250rpx;
		height: 180rpx;
		margin: 0rpx 0rpx 10rpx 0rpx;
	}

	.accountCancellationSubmission_flex_2 {
		padding: 88rpx 0rpx 0rpx 0rpx;
	}

	.accountCancellationSubmission_fd2_2_c0 {
		line-height: 40rpx;
		font-size: 28rpx;
		font-weight: 400;
		color: #666666;
	}

	.accountCancellationSubmission_fd2_1 {
		line-height: 105rpx;
		font-size: 32rpx;
		font-weight: 700;
		color: var(--benbenFontColor1);
	}

	.accountCancellationSubmission_fd2_0 {
		width: 250rpx;
		height: 180rpx;
		margin: 0rpx 0rpx 10rpx 0rpx;
	}

	.accountCancellationSubmission_flex_3 {
		background: #fff;
		width: 540rpx;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
	}

	.accountCancellationSubmission_fd3_2_c1 {
		border-top: 1px solid #eee;
		border-left: 1px solid #eee;
		background: #fff;
		line-height: 110rpx;
		border-radius: 0rpx 0rpx 16rpx 0rpx;
		font-size: 32rpx;
		color: rgba(0, 178, 17, 1);
		width: 270rpx;
	}

	.accountCancellationSubmission_fd3_2_c0 {
		border-top: 1px solid #eee;
		background: #fff;
		line-height: 110rpx;
		border-radius: 0rpx 0rpx 0rpx 16rpx;
		font-size: 32rpx;
		color: rgba(153, 153, 153, 1);
		padding: 0rpx 103rpx 0rpx 103rpx;
	}

	.accountCancellationSubmission_fd3_2 {
		margin: 37rpx 0rpx 0rpx 0rpx;
	}

	.accountCancellationSubmission_fd3_1 {
		line-height: 44rpx;
		font-size: 32rpx;
		font-weight: 500;
		color: #333333;
	}

	.accountCancellationSubmission_fd3_0 {
		font-size: 36rpx;
		font-weight: 800;
		line-height: 44rpx;
		color: #333333;
		margin: 40rpx 0rpx 40rpx 0rpx;
	}
</style>